function ret = tp_submit(mw)

	h = []

	% myproxy auth

	% submit: loop over all jobs of mw
	for i = 1:length(mw.jobs)
		j = mw.jobs(i);
	
  		fprintf("execute job %d\n", j.uid);
  		%h = [ h gt_jobsubmit(mw.resources.hostname, j.RSL)];
	endfor
	
	% poll for handles
	fprintf("handles: %d\n", length(h));
	
	ret = 1;

endfunction
